<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('单位确认详情')"/>
</head>
<body class="gray-bg">
<div class="container-div" id="jingfeipicidanweiqueren">
    <input type="hidden" th:value="${jingfeipiciid}" id="jingfeipiciid"/>
    <input type="hidden" th:value="${deptid}" id="deptid"/>
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form>
                <div class="select-list">
                    <ul>
                        <li>
                            <label style="width:100px;">单位名称：</label>
                            <input type="text" name="deptname" v-model="deptname"/>
                        </li>

                        <li>
                            <label style="width: 100px;">确认状态：</label>
                            <select name="shifouqueren" v-model="shifouqueren">
                                <option value ="">所有</option>
                                <option>未确认</option>
                                <option value ="1">已确认</option>
                            </select>
                        </li>

                        <li>
                            <a class="btn btn-success btn-rounded btn-md"
                               @click="bindDanweiList()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm"
                               onclick="$.form.reset('formId1','bootstrap-table1')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="col-sm-12 select-table table-striped" style="margin-top: 0;">
            <table class="bootstrap-table table-hover table-striped table" style="text-align: center;">
                <thead>
                <tr style="font-weight: bold;">
                    <td>序号</td>
                    <td>单位名称</td>
                    <td>是否确认</td>
                    <td>确认时间</td>
                    <td>是否开放申报变动权限</td>
                    <td>截止时间</td>
                    <td>设置申报变动权限</td>
                    <td>操作</td>
                </tr>
                <thead>
                <tbody>
                <tr v-for="(danweiquerenitem,index) in danweiquerenlist"  v-if="danweiquerenlist.length > 0">
                    <td style="vertical-align: middle; text-align: center;" v-text="index+1"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="danweiquerenitem.jigoumingcheng"></td>
                    <td style="vertical-align: middle; text-align: center;color:red" v-if="danweiquerenitem.shifouqueren==null">未确认</td>
                    <td style="vertical-align: middle; text-align: center;color:green" v-if="danweiquerenitem.shifouqueren==1">已确认</td>
                    <td style="vertical-align: middle; text-align: center;" v-text="danweiquerenitem.querenshijian"></td>
                    <td style="vertical-align: middle; text-align: center;color:red" v-if="danweiquerenitem.shifoukaifang==null">无申报权限</td>
                    <td style="vertical-align: middle; text-align: center;color:green" v-if="danweiquerenitem.shifoukaifang==1">已开放申报</td>
                    <td style="vertical-align: middle; text-align: center;" v-text="danweiquerenitem.jiezhishijian"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="">
                        <button class="btn btn-md btn-warning btn-rounded" @click="toShezhi(danweiquerenitem)">设置</button>
                    </td>
                    <td style="vertical-align: middle; text-align: center;" v-text="">
                        <button class="btn btn-md btn-info btn-rounded" @click="">发送提醒短信</button>
                        <button class="btn btn-md btn-info btn-rounded" @click="">发送提醒站内信</button>
                    </td>
                </tr>
                <tr v-if="danweiquerenlist.length == 0">
                    <td style="text-align: center; vertical-align: middle" colspan="8">查无数据</td>
                </tr>
                </tbody>
            </table>

            <div th:replace="system/jingfeipici/edit_kaifang::kaifang_edit"></div>
        </div>

    </div>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js" />
<script th:src="@{/js/system/jingfeipici/jingfei_danweiqueren.js?v=1.0}"></script>
</body>
</html>